/* 设计稿为1280，这里需要手动修改，因为bootstrap中大屏是1200 */
@media screen and (min-width:1280px){
    .container{
        width: 1280px;
    }
}
body{
    background: #f5f5f5;
}
.container{
    background: #fff;
}
ul{
    margin: 0;
    padding: 0;
    list-style: none;
}
a{
    color: #666;
    text-decoration: none;
}
a:hover{
    text-decoration: none;
}
/* header */
header{
    padding-left: 0!important;
}
.logo{
    background: #429ad9;
}
.logo img{
    display: block;
    /* width: 100%; */
    max-width: 100%;
    margin: 0 auto;
}
.logo span{
    display: block;
    height: 50px;
    line-height: 50px;
    color: #fff;
    font-size: 12px;
    text-align: center;
}
/* 当进入小屏幕、超小屏幕时，nav浮动后起来每个li占20% */
@media screen and (max-width:991px){
    .nav li{
        float: left;
        width: 20%;
    }
    article{
        margin-top: 10px;
    }
}
/* 当进入超小屏幕时，nav文字变为14px,news中第一个li宽100%，其他的宽50%,publish中文字变为14px*/

@media screen and (max-width:767px){
    .nav li a{
        font-size: 14px!important;
        /* padding-left: 3px; */
    }
    .news li:nth-child(1){
        width: 100%!important;
    }
    .news li:nth-child(n+2){
        width: 50%;
    }
    .publish h3{
        font-size: 14px;
    }
}
.nav{
    background: #eee;
    border-bottom: 1px solid #ccc;
}
.nav li a{
    display: block;
    height: 50px;
    line-height: 50px;
    padding-left: 30px;
    font-size: 16px;
}

.nav li a::before{
    vertical-align: middle;
    margin-right: 5px;
}
.nav li a:hover{
    background: #fff;
    color: #333;
}
/* article */
.news ul li{
    float: left;
    padding-right: 10px;
    margin-bottom: 10px;
    width: 25%;
    height: 128px;
}
.news ul li a{
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}
.news ul li:nth-child(1){
    width: 50%;
    height: 266px;
}
.news ul li:nth-child(1) p{
    line-height: 41px;
    font-size: 20px;
    padding: 0 10px;
}
.news  li a img{
    width: 100%;
    height: 100%;
}
.news li a p{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 41px;
    font-size: 12px;
    color: #fff;
    padding: 5px 10px;
    margin-bottom: 0;
    background: rgba(0, 0, 0, .5);
}
.publish{
    border-top: 1px solid #ccc;
}
.publish .row {
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
}
.pic{
    margin-top: 10px;
    padding-right: 10px;
}
.pic img{
    width: 100%;
}
/* aside */
aside a{
    display: block;
    width: 100%;
}
aside a img{
    width: 100%;
}
aside a:last-child{
    padding: 0 20px 20px;
    margin-top: 20px;
    border: 1px solid #ccc;
}